﻿@model IEnumerable<Qu.SeniorProject.Model.Faculty>

@{
    ViewBag.Title = "Available Supervisors";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Available Supervisors</h2>

<table>
    <tr>
        <th>
            Name
        </th>
        <th>
            Major
        </th>
        <th>
            Email
        </th>
        <th>
            Telephone
        </th>
        <th>
            Office
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Major)
        </td>
        <td>
            <a href="mailto:@item.Email?Subject=Senior Project Enquiry">@item.Email</a>
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Telephone)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Office)
        </td>
    </tr>
}

</table>

<br />
<div>
    @Html.ActionLink("Back to Home", "Index")
</div>